package io.renren.modules.practice.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.practice.entity.PythonQuizEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PythonQuizDao extends BaseMapper<PythonQuizEntity> {

    /**
     * 根据章节ID查询Python练习题列表
     */
    List<PythonQuizEntity> selectByChapterId(@Param("chapterId") Integer chapterId);

    /**
     * 根据题目ID查询题目详情
     */
    PythonQuizEntity selectById(@Param("id") Integer id);
} 